/**
 * Created by asen on 2015/10/14.
 */
package com.booleam.service.impl;

import com.booleam.dao.TestDAO;
import com.booleam.service.TestService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class TestServiceImpl implements TestService {

    @Resource
    private TestDAO testDAO;

    @Transactional
    public void test() throws Exception {
        String test = "test";
        testDAO.insertTest(test);
        throw new RuntimeException("aaa");
    }
}
